package shape2D;

import points2D.Point;

public class Circle implements Shape2D {
	/**
	 * @return the radius
	 */
	public double getRadius() {
		return radius;
	}

	/**
	 * @param radius the radius to set
	 */
	public void setRadius(double radius) {
		this.radius = radius;
	}

	/**
	 * @return the center
	 */
	public Point getCenter() {
		return center;
	}

	/**
	 * @param center the center to set
	 */
	public void setCenter(Point center) {
		this.center = center;
	}

	public Circle(Point center, double radius) {
		super();
		this.center = center;
		this.radius = radius;
	}

	private double radius; 
	private Point center; 
	
	public double getArea() {
		// TODO Auto-generated method stub
		return Math.PI*radius*radius; 
	}

	
	public double getPerimeter() {
		// TODO Auto-generated method stub
		return 2*Math.PI*radius;
	}

}
